package models;

public class Disciplina {
	public int id;
	public String nome;

	//Construtores
	public Disciplina(){

	}

	public Disciplina(int id, String nome){
		this.id = id;
		this.nome = nome;
	}

        public String getCodigo()
        {
            if(id < 10)
                return "00"+id;
            else if(id < 100)
                return "0"+id;
            else
                return ""+id;
        }
}
